package com.hzb.springcloud.alibaba.service;

import com.hzb.springcloud.alibaba.domain.CommonResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * description: StorageService <br>
 * date: 2020/8/19 16:57 <br>
 * author: huangZB <br>
 * version: 1.0 <br>
 */
@FeignClient(value = "seata-storage-service")
public interface StorageService {


    @PostMapping(value = "/storage/decrease")
    CommonResult decrease(@RequestParam("productId") Long productId, @RequestParam("count") Integer count);
}
